package com.furns.service;

import com.furns.entity.Furn;
import com.furns.entity.Page;

import java.util.List;

/**
 * @Author LuoJiaCheng
 * @ID 2240129126
 * @Version 1.0
 */
public interface FurnService {
    //返回家居信息
    public List<Furn> queryFurns();

    //判断家居是否添加成功
    public int addFurn(Furn furn);

    //判断家居是否删除成功
    public int deleteFurnById(int id);

    //根据id返回家居的信息
    public Furn queryFurnById(int id);

    //删除家居信息
    public int updateFurn(Furn furn);

    /**
     * 根据传入的pageNo和pageSize,返回对应的page对象
     * @param pageNo
     * @param pageSize
     * @return
     */
    public Page<Furn> page(int pageNo,int pageSize);

    public Page<Furn> pageByName(String name,int pageNo,int pageSize);
}
